package com.technology.education.ui.common.goods

import androidx.lifecycle.MutableLiveData
import com.technology.education.data.model.GoodsOrderDetailModel
import com.technology.education.network.apiService
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel
import me.hgj.jetpackmvvm.ext.request
import me.hgj.jetpackmvvm.state.ResultState

/**
 *@author:create by BZY
 *Date: 2022/4/2 09
 */
class GoodsOrderDetailViewModel : BaseViewModel() {
    var orderId = ""
    val result = MutableLiveData<ResultState<GoodsOrderDetailModel>>()
    override fun getData() {
        super.getData()
        request({ apiService.pointOrderDetail(orderId) }, result)
    }
}